//
//  PSTCPHeader.m
//  PacketSniffer
//
//  Created by nark on 02/05/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "PSTCPHeader.h"


@implementation PSTCPHeader

@synthesize sourcePort;
@synthesize destinationPort;
@synthesize sequenceNumber;
@synthesize acknowledgementNumber;
@synthesize dataOffset;
@synthesize checksum;
@synthesize window;
@synthesize urgentPointer;

- (NSString *)description {
	return [NSString stringWithFormat:@"TCP Header - %d -> %d", sourcePort, destinationPort];
}

- (NSMutableDictionary *)properties {
	NSMutableDictionary *propertyDict = [[NSMutableDictionary alloc] init];
	
	[propertyDict setValue:self.sourcePort forKey:@"Source Port"];
	
	[propertyDict setValue:self.destinationPort forKey:@"Destination Port"];
	
	
	return propertyDict;
}

@end